import request from '@/utils/request'

// 添加部门
export function addDepartment(obj) {
  return request({
    url: '/department/add',
    method: 'post',
    data: obj
  })
}

// 获取部门列表
export function departmentList(params) {
  return request({
    url: '/department/list',
    method: 'get',
    params
  })
}

// 更新部门
export function updateDepartment(obj) {
  return request({
    url: '/department/update',
    method: 'post',
    data: obj
  })
}

// 删除部门
export function deleteDepartment(obj) {
  return request({
    url: '/department/delete',
    method: 'delete',
    params: obj
  })
}
